﻿using System.ComponentModel;
using System.Configuration.Install;


namespace Baby.VideoService
{
    [RunInstaller(true)]
    public partial class ProjectInstaller : Installer
    {
        public ProjectInstaller()
        {
            InitializeComponent();
        }

        private void VideoServiceInstaller_AfterInstall(object sender, InstallEventArgs e)
        {
            var sc = new System.ServiceProcess.ServiceController();
            sc.ServiceName = "VideoService";
            sc.Start();
        }
    }
}
